package com.aconcagua.samples.charts.controller.gestures {
  import com.aconcagua.mvc.control.Gesture;

  public class ZoomGesture extends Gesture {
    public static const GESTURE_NAME: String = "zoomGesture";

    private var _timeFrom: Number;
    private var _timeTo: Number;

    public function ZoomGesture(fromTime: Number, toTime: Number) {
      super(GESTURE_NAME);
      _timeFrom = fromTime;
      _timeTo = toTime;
    }
    
    public function get timeFrom(): Number {
      return _timeFrom;
    }
    
    public function get timeTo(): Number {
      return _timeTo;
    }

    public function get dateFrom(): Date {
      return new Date(_timeFrom);
    }

    public function get dateTo(): Date {
      return new Date(_timeTo);
    }
  }
}